/*
 * F3.c
 *
 *  Created on: 21/10/2012
 *      Author: Sarah
 */

double F3minX = -32;
double F3maxX = 32;
int F3dimensions = 1000;

double F3Compute(double* x) {

	double* F3Ovector = createShiftVector(F3dimensions, F3minX, F3maxX);
	double* F3anotherz = malloc(sizeof(double) * F3dimensions);

	int i;
	double result;


	for (i = F3dimensions - 1; i >= 0; i--) {
		F3anotherz[i] = x[i] - F3Ovector[i];
	}

	result = ackley(F3anotherz, F3dimensions);

	free(F3Ovector);
	free(F3anotherz);

	return (result);
}

int F3GetDimensions() {
return F3dimensions;
}
double F3GetGetMax() {
return F3maxX;
}
double F3GetMin() {
return F3minX;
}
